import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
// 商品分类列表查询
export const findClassifyListPage = query => {
    return request({
        url: baseRequest_url+'/admin/product/classify/findClassifyListPage',
        method: 'get',
		params: query
    });
};
// 商品分类详情查询
export const findClassifyInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/product/classify/findClassifyInfoById/'+query,
        method: 'get',
    });
};
// 商品分类关键词查询
export const findClassifyWithKeyword = query => {
    return request({
        url: baseRequest_url+'/admin/product/classify/findClassifyWithKeyword',
        method: 'get',
		params: query
    });
};
// 商品子分类列表查询
export const findClassifyListChildPage = query => {
    return request({
        url: baseRequest_url+'/admin/product/classify/findClassifyListChildPage',
        method: 'get',
		params: query
    });
};
// 商品分类下拉查询
export const findClassifyPullDownList = query => {
    return request({
        url: baseRequest_url+'/admin/product/classify/findClassifyPullDownList',
        method: 'get',
		params: query
    });
};
// 新增商品分类
export const addClassify = data => {
    return request({
        url: baseRequest_url+'/admin/product/classify/saveClassify',
        method: 'post',
		data: data
    });
};
// 编辑商品分类
export const saveClassify = data => {
    return request({
        url: baseRequest_url+'/admin/product/classify/saveClassify',
        method: 'put',
		data: data
    });
};
// 删除商品分类
export const deleteClassify = data => {
    return request({
        url: baseRequest_url+'/admin/product/classify/deleteClassify/'+data,
        method: 'delete',
    });
};
// 批量删除商品分类
export const batchDeleteClassify = data => {
    return request({
        url: baseRequest_url+'/admin/product/classify/deleteClassify',
        method: 'delete',
        data: data
    });
};
